package generator

import (
	"gitee.com/yanwc/ebike-vcom-device/internal/field"
	"gitee.com/yanwc/net/utils"
	"github.com/brianvoe/gofakeit/v6"
)

func RandomVoltageV() field.VoltageV {
	v := gofakeit.Number(0, 480)
	d := utils.NumberToBytesWithBigEndian(v)
	var r field.VoltageVRaw
	copy(r[:], d)
	return r.Type()
}
